//
// Created by 王乐 on 2022/2/17.
//

#include "LeFireGameObject.h"
#include "LeFireBehaviour.h"
#include "LeParticleSystem.h"

LeFireGameObject::LeFireGameObject()
{}

LeFireGameObject::~LeFireGameObject()
{

}

void LeFireGameObject::Initialize()
{
    strName = "MyFire";
    m_bSelectable = false;

    // Transform
    // ---------
    m_Transform.setPosition(0.0f, 0.0f, 0.0f);

    // RigidBody
    // ---------

    // Behaviour
    // ---------
    LeFireBehaviour* pBehaviour = new LeFireBehaviour();

    // Renderer
    // --------

    // ParticleSystem
    // --------------
    LeParticleSystem* pParticleSystem = new LeParticleSystem(this);

    // Initialize Components
    initComponents(nullptr, nullptr, pBehaviour, pParticleSystem);
}
